package com.mtw.bbs.bbsUser.pojo.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.mtw.bbs.userAdmin.pojo.vo.BaseUserVo;
import com.mtw.bbs.userAdmin.pojo.vo.RoleVo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

@EqualsAndHashCode(callSuper = true)
@Data
@ApiModel("用户VO")
public class UserVo extends BaseUserVo implements Serializable {


    private static final long serialVersionUID = 1L;


    @ApiModelProperty(value = "主键")
    private String id;

    /**
     * 账号
     */
    @ApiModelProperty(value = "账号")
    private String username;

    /**
     * 昵称
     */
    @ApiModelProperty(value = "昵称")
    private String displayName;


    /**
     * 邮箱
     */
    @ApiModelProperty(value = "邮箱")
    private String email;
    /**
     * 手机
     */
    @ApiModelProperty(value = "手机")
    private String phone;
    /**
     * 生日
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "生日")
    private Date birthday;
    /**
     * 性别
     */
    @ApiModelProperty(value = "性别")
    private Integer sex;

    /**
     * 签名
     */
    @ApiModelProperty(value = "签名")
    private String introduction;

    /**
     * 地区
     */
    @ApiModelProperty(value = "地区")
    private String address;

    /**
     * 用户类型
     */
    @ApiModelProperty(value = "用户类型")
    private Integer userType;

    /**
     * 业务状态[1:正常]
     */
    @ApiModelProperty(value = "业务状态")
    private Integer status;

    /**
     * 评论状态[1:正常，0禁言]
     */
    @ApiModelProperty(value = "评论状态")
    private Integer commentStatus;

    /**
     * 粉丝数
     */
    @ApiModelProperty(value = "粉丝数")
    private Integer fansCount;


    /**
     * 用户角色
     */
    @ApiModelProperty(value = "用户角色")
    private List<RoleVo> role;





}